<?php
namespace app\data_magic\controller;

use cmf\controller\HomeBaseController;
use app\data_magic\logic\Scene;

/**
 * 基于Scene的前台页面
 */
class SceneController extends StructureController
{
    public function getSceneAndMeta()
    {
        $id=input("scene_id");
        $scene=new Scene();
        $meta=$scene->init($id);
        if(!$meta){
            $this->error($scene->getError());
        }
        return [$scene,$meta];
    }
}
